package com.class03.field_method.field;



/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/3/22 8:58
 */
public class Dog {
    //属性
    String name;
    int age;
    String color;
    //块
    {
        System.out.println("我是块");
    }
    public Dog() {
        System.out.println("我是狗的构造方法");
    }
    public void sleep() {
        System.out.println("我是方法");
    }


}
